home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / include / gl / curve.h.z / curve.h
Encoding:
C/C++ Source or Header  |  1996-12-06  |  1.3 KB  |  64 lines

  1. #ifndef __GL_CURVE_H__
  2. #define __GL_CURVE_H__
  3.  
  4. #ident "$Revision: 1.4 $"
  5.  
  6. #include "wstatep.h"
  7. #include "attributil.h"
  8.  
  9. typedef struct {
  10.     short    precision;
  11.     long    basis;
  12.     float    geom[16];
  13.     float    itermat[16];
  14. } Curve;
  15.  
  16. typedef struct {
  17.     short    precision;
  18.     long    basis;
  19.     short    npts;
  20.     float    *geom;
  21.     float    *itermat;
  22. } Curves;
  23.  
  24. typedef struct {
  25.     float    gx[16];
  26.     float    gy[16];
  27.     float    gz[16];
  28.     float    gw[16];
  29.  
  30.     /* specifies the number of "u" curves drawn in approximating the
  31.     surface */
  32.     short    u_curves;
  33.  
  34.     /* specifies the minimum precision with which mesh curves are drawn */
  35.     short    u_precision;
  36.  
  37.     /* these values are the precision of the mesh curves after the increase
  38.     in resolution of the curves */
  39.     short    u_mult;
  40.  
  41.     /* specifies the number of "u" curves drawn in approximating the
  42.     surface */
  43.     short    v_curves;
  44.  
  45.     /* specifies the minimum precision with which mesh curves are drawn */
  46.     short    v_precision;
  47.  
  48.     /* these values are the precision of the mesh curves after the increase
  49.     in resolution of the curves */
  50.     short     v_mult;
  51.  
  52.     long     u_basis;
  53.     long     v_basis;
  54.  
  55.     /* the first u_precision+1 entries are curves of constant u 
  56.     the remaining curves are of constant v */
  57.     float    *itermats;
  58.  
  59. } Patch;
  60.  
  61. extern Basisrec *gl_findbasis(long name,int internal);
  62.  
  63. #endif /* __GL_CURVE_H__ */
  64.